﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Admin Console | Bill Message | Edit Messages Check In | Emm</title>
<%@page import="java.util.*" %>
<%
	String Code = (String)session.getAttribute("LanguageCode");
	String SubCode = (String)session.getAttribute("LanguageSubcode");
    Locale locale = new Locale(Code, SubCode);
	ResourceBundle resource = ResourceBundle.getBundle("resource", locale);
%>
<link href="/css/Adminconsole/Main.css" rel="stylesheet" />
<link href="/css/custom/jquery-ui-1.9.1.custom.min.css" rel="stylesheet" />
<script src="/js/jquery-1.8.3.min.js"></script>
<script src="/js/jquery-ui-1.9.1.custom.min.js"></script>
<script src="/js/sharedData.js"></script>
<script src="/js/simpleservice.js"></script>
<script src="/js/adminconsole/RoomsManager/BillMassage/billmassage.js"></script>
<script type="text/javascript" src="/ckeditor/ckeditor.js" ></script>
<jsp:include page="/adminconsole/language.jsp" flush="true" />
</head>
<body>
	<header>
		<div class="brand">
			<div name="hotelName"><h2>iHotel</h2></div>
			<div name="pageName">Admin Console</div>
            	<jsp:include page="/adminconsole/menu.jsp" flush="true" />
		</div>
	</header>
	<div class="main">
		<div class="breadcrumb">
			<% out.print(resource.getString("AdminConsole.Page.BillMessages"));%>
		</div>
        <div class="destitle"><% out.print(resource.getString("AdminConsole.Page.BillMessages.suggest"));%></div>
		<div class="content">
			<table style="width:100%;border:none" cellpadding="5" cellspacing="0" id="tableform">
				<tr>
					<td colspan="2" style="text-align:center;font-weight:bold">
						<% out.print(resource.getString("AdminConsole.Page.BillMessages.checkin"));%>
					</td>
				</tr>
				<tr>
					<td style="width:22%;text-align:right">&nbsp;</td>
					<td style="width:78%;text-align:left">&nbsp;</td>
				</tr>
				<tr >
					<td style="text-align:right">
						<% out.print(resource.getString("AdminConsole.Page.BillMessages.advance"));%>:
					</td>
					<td style="text-align:left">
						<input type="checkbox" id="editadvance" onchange="advancechange()"/>
					</td>
				</tr>
				<tr>
					<td style="text-align:right;vertical-align:top">
						<% out.print(resource.getString("AdminConsole.Page.BillMessages.notice"));%>: 
					</td>
					<td style="text-align:left">
						<textarea id="txtMessageCheckIn" ></textarea>
					</td>
				</tr>
				<tr id="showcardbody" style="display:none">
					<td style="text-align:right;vertical-align:top" >
						<% out.print(resource.getString("AdminConsole.Page.BillMessages.body"));%>:
					</td>
					<td style="text-align:left">
						<textarea id="checkincardbody" ></textarea>
					</td>
				</tr>
				<tr>
					<td style="text-align:right;vertical-align:top">
						<% out.print(resource.getString("AdminConsole.Page.BillMessages.thx"));%>: 
					</td>
					<td style="text-align:left">
						<p><input type="checkbox" id="ispublish" />(<% out.print(resource.getString("AdminConsole.Page.BillMessages.onweb"));%>)</p>
						<p><textarea id="thxmessageCheckIn" ></textarea></p>
					</td>
				</tr>
				<tr>
						<td style="text-align:right">&nbsp;</td>
						<td style="text-align:left"><input id="btnSave" type="button"  value="<% out.print(resource.getString("AdminConsole.Page.center.save"));%>" onclick="saveMessageCheckIn()">
						<input type="button"  onclick="" value="<% out.print(resource.getString("AdminConsole.Page.center.preview"));%>">
						<input type="button"  onclick="doBack(this.form);" value="<% out.print(resource.getString("AdminConsole.Page.center.cancel"));%>">
					</td>
				</tr>
			</table>
<script type="text/javascript">
        //<![CDATA[
            CKEDITOR.replace( 'txtMessageCheckIn',{
				height   : 100,
				width    : 750,
              skin   : 'kama',
			  toolbar :
        [
            ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
            ['Undo','Redo','-','Find','Replace','SelectAll','RemoveFormat'],
            ['Bold','Italic','Underline','Strike'],
            ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
            ['Styles','Format','Font','FontSize'],
            ['TextColor','BGColor']

        ],
            } );
			CKEDITOR.replace( 'thxmessageCheckIn',{
				height   : 100,
				width    : 750,
              skin   : 'kama',
			  toolbar :
        [
            ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
            ['Undo','Redo','-','Find','Replace','SelectAll','RemoveFormat'],
            ['Bold','Italic','Underline','Strike'],
            ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
            ['Styles','Format','Font','FontSize'],
            ['TextColor','BGColor']

        ],
            } );
			
						CKEDITOR.replace( 'checkincardbody',{
				height   : 100,
				width    : 750,
              skin   : 'kama',
			  toolbar :
        [
            ['Source','-','NewPage','Preview','-','Templates'],
            ['Cut','Copy','Paste','PasteText','PasteFromWord','-','SpellChecker', 'Scayt'],
            ['Undo','Redo','-','Find','Replace','SelectAll','RemoveFormat'],
            ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
            ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
            ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
            ['Link','Unlink','Anchor'],
            ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
            ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
            ['Styles','Format','Font','FontSize'],
            ['TextColor','BGColor']

        ],
            } );
        //]]>
    </script>
<script>
$(function(){
		EditMessageCheckIn();
	});
</script>

		</div>
	</div>

	<div id="BlankDialog" style="display:none; padding:5px 0 0 10px;"></div>
	<div id="loadingScreen"></div>
	<div name="dynamic" style="display:none"></div>
</body>

</html>